import { EventHandlers, EventNode } from "@commonmodule/ts"; import { DomSelector, ElementOrSelector, ElementProperties, InferElementType } from "@commonmodule/universal-page"; export type DomChild = DomNode | ElementProperties> | string | undefined; type DOMEventHandlers = { [K in keyof HTMLElementEventMap]: (event: HTMLElementEventMap[K]) => void; }; export default class DomNode extends EventNode void; }> { htmlElement: H; constructor(elementOrSelector?: H | DomSelector, ...children: DomChild[]); private prependText; private appendText; prepend(...children: DomChild[]): this; append(...children: DomChild[]): this; protected isVisible(): boolean; private notifyVisibility; appendTo(parent: DomNode, index?: number): this; clear(...except: (DomNode | undefined)[]): this; set text(text: string | undefined); get text(): string; addClass(...classNames: string[]): this; hasClass(className: string): boolean; removeClass(...classNames: string[]): this; style | string>(styles: T): T extends string ? string : this; calculateRect(): DOMRect; clone(): DomNode; remove(): void; } export {}; //# sourceMappingURL=DomNode%20copy.d.ts.map